import React, { Component } from 'react';
import '../styles/MyTabar.scss'

class MyTabar extends Component {
    constructor(props) {
        super(props)
        this.state = {
            list: [
                { name: '店铺' }, { name: '分类' }, { name: '全部商品' },
                { name: '购物车' }, { name: '个人中心' },
            ]
        }
    }
    render() {
        return (
            <div className='tabar' >
                {
                    this.state.list.map((item, index) => {
                        return (
                            <div className="item2" key={index}>
                                {item.name}
                            </div>

                        )
                    })
                }

            </div>
        );
    }
}

export default MyTabar;